#ifndef DISPLAYCONTROLLER_H
#define DISPLAYCONTROLLER_H

#include <vector>
#include "LMONDisplay.h"
#include "Thread.h"

class MainWindow;
class DisplayWidget;

class DisplayController : public Thread
{
private:
	MainWindow* _pMainWindow;
	void run();

	int _timeScale;

public:
	DisplayController();
	void addDisplayLeft(LMONDisplay* pDisplay);
	void addDisplayRight(LMONDisplay* pDisplay);
	void createWidgets();
	void calculatePositions();
	void showDisplay();
	void repaint();

	void setTimeScale(int timeScale);
};

#endif
